#ifndef MT9M112_REGS_H
#define MT9M112_REGS_H
#include "ArduCAM.h"
#include <Wire.h>

const struct sensor_reg MT9T112_QVGA[] PROGMEM=
{
	


	{0xffff, 0xffff},
};

const struct sensor_reg MT9D112_soc_init[]  PROGMEM=
{
	{0x34ce , 0x01a0 },  
	{0x34d0 , 0x6532 },  
	{0x34d2 , 0x3297 },  
	{0x34d4 , 0x9664 },  
	{0x34d6 , 0x4b25 },  
	{0x34d8 , 0x2670 },  
	{0x34da , 0x724c },  
	{0x34dc , 0xff01 },  
	{0x34de , 0x011f },  
	{0x34e6 , 0x00b3 },  
	{0x34ee , 0x0d8f },  
	{0x34f6 , 0x0d6e },  
	{0x3500 , 0xf51c },  
	{0x3508 , 0xfef8 },  
	{0x3510 , 0x212d },  
	{0x3518 , 0x212b },  
	{0x3520 , 0x1f2a },  
	{0x3528 , 0x2934 },  
	{0x3530 , 0x17db },  
	{0x3538 , 0xe7d6 },  
	{0x354c , 0x07c6 },  
	{0x3544 , 0x07ff },  
	{0x355c , 0x051c },  
	{0x3554 , 0x07ff },  
	{0x34e0 , 0x0137 },  
	{0x34e8 , 0x00a8 },  
	{0x34f0 , 0x0e3e },  
	{0x34f8 , 0x0dcb },  
	{0x3502 , 0xf20a },  
	{0x350a , 0xfbe1 },  
	{0x3512 , 0x1c26 },  
	{0x351a , 0x232b },  
	{0x3522 , 0x312e },  
	{0x352a , 0x2121 },  
	{0x3532 , 0xf106 },  
	{0x353a , 0x0c0d },  
	{0x354e , 0x07ff },  
	{0x3546 , 0x0638 },  
	{0x355e , 0x07ff },  
	{0x3556 , 0x0155 },  
	{0x34e4 , 0x0107 },  
	{0x34ec , 0x0079 },  
	{0x34f4 , 0x0e19 },  
	{0x34fc , 0x0d35 },  
	{0x3506 , 0x111c },  
	{0x350e , 0x02e6 },  
	{0x3516 , 0x2521 },  
	{0x351e , 0x2620 },  
	{0x3526 , 0x1a25 },  
	{0x352e , 0x0b1d },  
	{0x3536 , 0xfd03 },  
	{0x353e , 0xb315 },  
	{0x3552 , 0x06d0 },  
	{0x354a , 0x03ff },  
	{0x3562 , 0x07ff },  
	{0x355a , 0x057b },  
	{0x34e2 , 0x011e },  
	{0x34ea , 0x008a },  
	{0x34f2 , 0x0d6e },  
	{0x34fa , 0x0d7f },  
	{0x3504 , 0xf822 },  
	{0x350c , 0x0dfc },  
	{0x3514 , 0x1f25 },  
	{0x351c , 0x3032 },  
	{0x3524 , 0x2628 },  
	{0x352c , 0x1523 },  
	{0x3534 , 0xfadf },  
	{0x353c , 0xdef7 },  
	{0x3550 , 0x0109 },  
	{0x3548 , 0x0638 },  
	{0x3560 , 0x0638 },  
	{0x3558 , 0x07ff },  
	{0x3540 , 0x0000 },  
	{0x3542 , 0x0000 },  
	{0x3210 , 0x01fc },  
	{0x338c , 0xa364 },  
	{0x3390 , 0x0080 },  
	{0x338c , 0xa364 },  
	{0x3390 , 0x0080 },  
	{0x338c , 0xa365 },  
	{0x3390 , 0x008c },  
	{0x338c , 0xa365 },  
	{0x3390 , 0x008c },  
	{0x338c , 0xa366 },  
	{0x3390 , 0x0082 },  
	{0x338c , 0xa366 },  
	{0x3390 , 0x0082 },  
	{0x338c , 0x2306 },  
	{0x3390 , 0x0619 },  
	{0x338c , 0x2308 },  
	{0x3390 , 0xfc80 },  
	{0x338c , 0x230a },  
	{0x3390 , 0xfefb },  
	{0x338c , 0x230c },  
	{0x3390 , 0xfeee },  
	{0x338c , 0x230e },  
	{0x3390 , 0x0571 },  
	{0x338c , 0x2310 },  
	{0x3390 , 0xfe26 },  
	{0x338c , 0x2312 },  
	{0x3390 , 0xff0c },  
	{0x338c , 0x2314 },  
	{0x3390 , 0xfe48 },  
	{0x338c , 0x2316 },  
	{0x3390 , 0x04a2 },  
	{0x338c , 0x2318 },  
	{0x3390 , 0x0024 },  
	{0x338c , 0x231a },  
	{0x3390 , 0x003f },  
	{0x338c , 0x231c },  
	{0x3390 , 0xfda7 },  
	{0x338c , 0x231e },  
	{0x3390 , 0x0158 },  
	{0x338c , 0x2320 },  
	{0x3390 , 0x00ee },  
	{0x338c , 0x2322 },  
	{0x3390 , 0x00d3 },  
	{0x338c , 0x2324 },  
	{0x3390 , 0xfc74 },  
	{0x338c , 0x2326 },  
	{0x3390 , 0x01a9 },  
	{0x338c , 0x2328 },  
	{0x3390 , 0x014b },  
	{0x338c , 0x232a },  
	{0x3390 , 0xfe9d },  
	{0x338c , 0x232c },  
	{0x3390 , 0xff69 },  
	{0x338c , 0x232e },  
	{0x3390 , 0x0018 },  
	{0x338c , 0x2330 },  
	{0x3390 , 0xffec },  
	{0x338c , 0xa348 },  
	{0x3390 , 0x0008 },  
	{0x338c , 0xa349 },  
	{0x3390 , 0x0002 },  
	{0x338c , 0xa34a },  
	{0x3390 , 0x0059 },  
	{0x338c , 0xa34b },  
	{0x3390 , 0x00a6 },  
	{0x338c , 0xa34f },  
	{0x3390 , 0x0000 },  
	{0x338c , 0xa350 },  
	{0x3390 , 0x007f },  
	{0x338c , 0xa353 },  
	{0x3390 , 0x0002 },  
	{0x338c , 0xa35b },  
	{0x3390 , 0x0078 },  
	{0x338c , 0xa35c },  
	{0x3390 , 0x0086 },  
	{0x338c , 0xa35d },  
	{0x3390 , 0x007e },  
	{0x338c , 0xa35e },  
	{0x3390 , 0x0082 },  
	{0x338c , 0x235f },  
	{0x3390 , 0x0040 },  
	{0x338c , 0xa361 },  
	{0x3390 , 0x00c8 },  
	{0x338c , 0xa362 },  
	{0x3390 , 0x00e1 },  
	{0x338c , 0xa302 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0xa303 },  
	{0x3390 , 0x00ef },  
	{0x338c , 0xa352 },  
	{0x3390 , 0x001e },  
	{0x338c , 0xa118 },  
	{0x3390 , 0x001e },  
	{0x338c , 0xa103 },  
	{0x3390 , 0x0005 },  
	{0x338c , 0xa76d },  
	{0x3390 , 0x0003 },  
	{0x338c , 0xa76f },  
	{0x3390 , 0x0000 },  
	{0x338c , 0xa770 },  
	{0x3390 , 0x000b },  
	{0x338c , 0xa771 },  
	{0x3390 , 0x0023 },  
	{0x338c , 0xa772 },  
	{0x3390 , 0x0043 },  
	{0x338c , 0xa773 },  
	{0x3390 , 0x006e },  
	{0x338c , 0xa774 },  
	{0x3390 , 0x0090 },  
	{0x338c , 0xa775 },  
	{0x3390 , 0x00a8 },  
	{0x338c , 0xa776 },  
	{0x3390 , 0x00b9 },  
	{0x338c , 0xa777 },  
	{0x3390 , 0x00c6 },  
	{0x338c , 0xa778 },  
	{0x3390 , 0x00d0 },  
	{0x338c , 0xa779 },  
	{0x3390 , 0x00d9 },  
	{0x338c , 0xa77a },  
	{0x3390 , 0x00e0 },  
	{0x338c , 0xa77b },  
	{0x3390 , 0x00e6 },  
	{0x338c , 0xa77c },  
	{0x3390 , 0x00eb },  
	{0x338c , 0xa77d },  
	{0x3390 , 0x00f0 },  
	{0x338c , 0xa77e },  
	{0x3390 , 0x00f4 },  
	{0x338c , 0xa77f },  
	{0x3390 , 0x00f8 },  
	{0x338c , 0xa780 },  
	{0x3390 , 0x00fc },  
	{0x338c , 0xa781 },  
	{0x3390 , 0x00ff },  
	{0x338c , 0xa102 },  
	{0x3390 , 0x002f },  
	{0x338c , 0xa114 },  
	{0x3390 , 0x0005 },  

	{0x338c , 0xa103 },  
	{0x3390 , 0x0005 },  

	{0x338c , 0xa206 },  
	{0x3390 , 0x003c },  
	{0xffff,0xffff},
};        

const struct sensor_reg MT9D112_default_setting[] PROGMEM =
{
	{0x341e , 0x8f09 },  
	{0x341e , 0x8f08 },  
	{0x3044 , 0x0540 },  
	{0x3216 , 0x02cf },  
	{0x321c , 0x0402 },  
	{0x3212 , 0x0001 },  
	{0x341e , 0x8f09 },  
	{0x341c , 0x0114 },  
	{0x341e , 0x8f09 },  
	{0x341e , 0x8f08 },  
	{0x3044 , 0x0540 },  
	{0x3216 , 0x02cf },  
	{0x321c , 0x0402 },  
	{0x3212 , 0x0001 },  
	{0x338c , 0x2703 },  
	{0x3390 , 0x0140 },  
	{0x338c , 0x2705 },  
	{0x3390 , 0x00f0 },  
	{0x338c , 0x2707 },  
	{0x3390 , 0x0640 },  
	{0x338c , 0x2709 },  
	{0x3390 , 0x04b0 },  
	{0x338c , 0x270d },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x270f },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2711 },  
	{0x3390 , 0x04bd },  
	{0x338c , 0x2713 },  
	{0x3390 , 0x064d },  
	{0x338c , 0x2715 },  
	{0x3390 , 0x0022 },  
	{0x338c , 0x2717 },  
	{0x3390 , 0x2111 },  
	{0x338c , 0x2719 },  
	{0x3390 , 0x046c },  
	{0x338c , 0x271b },  
	{0x3390 , 0x024f },  
	{0x338c , 0x271d },  
	{0x3390 , 0x0102 },  
	{0x338c , 0x271f },  
	{0x3390 , 0x0279 },  
	{0x338c , 0x2721 },  
	{0x3390 , 0x0155 },  
	{0x338c , 0x2723 },  
	{0x3390 , 0x0293 },  
	{0x338c , 0x2725 },  
	{0x3390 , 0x0824 },  
	{0x338c , 0x2727 },  
	{0x3390 , 0x2020 },  
	{0x338c , 0x2729 },  
	{0x3390 , 0x2020 },  
	{0x338c , 0x272b },  
	{0x3390 , 0x1020 },  
	{0x338c , 0x272d },  
	{0x3390 , 0x2007 },  
	{0x338c , 0x272f },  
	{0x3390 , 0x0004 },  
	{0x338c , 0x2731 },  
	{0x3390 , 0x0004 },  
	{0x338c , 0x2733 },  
	{0x3390 , 0x04bb },  
	{0x338c , 0x2735 },  
	{0x3390 , 0x064b },  
	{0x338c , 0x2737 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2739 },  
	{0x3390 , 0x2111 },  
	{0x338c , 0x273b },  
	{0x3390 , 0x0024 },  
	{0x338c , 0x273d },  
	{0x3390 , 0x0120 },  
	{0x338c , 0x273f },  
	{0x3390 , 0x00a4 },  
	{0x338c , 0x2741 },  
	{0x3390 , 0x0169 },  
	{0x338c , 0x2743 },  
	{0x3390 , 0x00a4 },  
	{0x338c , 0x2745 },  
	{0x3390 , 0x04ed },  
	{0x338c , 0x2747 },  
	{0x3390 , 0x0824 },  
	{0x338c , 0x2751 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2753 },  
	{0x3390 , 0x0320 },  
	{0x338c , 0x2755 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2757 },  
	{0x3390 , 0x0258 },  
	{0x338c , 0x275f },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2761 },  
	{0x3390 , 0x0640 },  
	{0x338c , 0x2763 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2765 },  
	{0x3390 , 0x04b0 },  
	{0x338c , 0x222e },  
	{0x3390 , 0x0060 },  
	{0x338c , 0xa408 },  
	{0x3390 , 0x0017 },  
	{0x338c , 0xa409 },  
	{0x3390 , 0x001a },  
	{0x338c , 0xa40a },  
	{0x3390 , 0x001b },  
	{0x338c , 0xa40b },  
	{0x3390 , 0x001e },  
	{0x338c , 0x2411 },  
	{0x3390 , 0x0060 },  
	{0x338c , 0x2413 },  
	{0x3390 , 0x0073 },  
	{0x338c , 0x2415 },  
	{0x3390 , 0x0060 },  
	{0x338c , 0x2417 },  
	{0x3390 , 0x0073 },  
	{0x338c , 0xa40d },  
	{0x3390 , 0x0002 },  
	{0x338c , 0xa410 },  
	{0x3390 , 0x0001 },  
	{0x338c , 0xa103 },  
	{0x3390 , 0x0006 },  
	{0x338c , 0xa103 },  
	{0x3390 , 0x0005 },  
	{0x338c , 0x2703 },  
	{0x3390 , 0x0140 },  
	{0x338c , 0x2705 },  
	{0x3390 , 0x00f0 },  
	{0x338c , 0x2707 },  
	{0x3390 , 0x0640 },  
	{0x338c , 0x2709 },  
	{0x3390 , 0x04b0 },  
	{0x338c , 0x270d },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x270f },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2711 },  
	{0x3390 , 0x04bd },  
	{0x338c , 0x2713 },  
	{0x3390 , 0x064d },  
	{0x338c , 0x2715 },  
	{0x3390 , 0x0022 },  
	{0x338c , 0x2717 },  
	{0x3390 , 0x2111 },  
	{0x338c , 0x2719 },  
	{0x3390 , 0x046c },  
	{0x338c , 0x271b },  
	{0x3390 , 0x024f },  
	{0x338c , 0x271d },  
	{0x3390 , 0x0102 },  
	{0x338c , 0x271f },  
	{0x3390 , 0x0279 },  
	{0x338c , 0x2721 },  
	{0x3390 , 0x0155 },  
	{0x338c , 0x2723 },  
	{0x3390 , 0x0293 },  
	{0x338c , 0x2725 },  
	{0x3390 , 0x0824 },  
	{0x338c , 0x2727 },  
	{0x3390 , 0x2020 },  
	{0x338c , 0x2729 },  
	{0x3390 , 0x2020 },  
	{0x338c , 0x272b },  
	{0x3390 , 0x1020 },  
	{0x338c , 0x272d },  
	{0x3390 , 0x2007 },  
	{0x338c , 0x272f },  
	{0x3390 , 0x0004 },  
	{0x338c , 0x2731 },  
	{0x3390 , 0x0004 },  
	{0x338c , 0x2733 },  
	{0x3390 , 0x04bb },  
	{0x338c , 0x2735 },  
	{0x3390 , 0x064b },  
	{0x338c , 0x2737 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2739 },  
	{0x3390 , 0x2111 },  
	{0x338c , 0x273b },  
	{0x3390 , 0x0024 },  
	{0x338c , 0x273d },  
	{0x3390 , 0x0120 },  
	{0x338c , 0x273f },  
	{0x3390 , 0x00a4 },  
	{0x338c , 0x2741 },  
	{0x3390 , 0x0169 },  
	{0x338c , 0x2743 },  
	{0x3390 , 0x00a4 },  
	{0x338c , 0x2745 },  
	{0x3390 , 0x04ed },  
	{0x338c , 0x2747 },  
	{0x3390 , 0x0824 },  
	{0x338c , 0x2751 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2753 },  
	{0x3390 , 0x0320 },  
	{0x338c , 0x2755 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2757 },  
	{0x3390 , 0x0258 },  
	{0x338c , 0x275f },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2761 },  
	{0x3390 , 0x0640 },  
	{0x338c , 0x2763 },  
	{0x3390 , 0x0000 },  
	{0x338c , 0x2765 },  
	{0x3390 , 0x04b0 },  
	{0x338c , 0x222e },  
	{0x3390 , 0x0060 },  
	{0x338c , 0xa408 },  
	{0x3390 , 0x0017 },  
	{0x338c , 0xa409 },  
	{0x3390 , 0x001a },  
	{0x338c , 0xa40a },  
	{0x3390 , 0x001b },  
	{0x338c , 0xa40b },  
	{0x3390 , 0x001e },  
	{0x338c , 0x2411 },  
	{0x3390 , 0x0060 },  
	{0x338c , 0x2413 },  
	{0x3390 , 0x0073 },  
	{0x338c , 0x2415 },  
	{0x3390 , 0x0060 },  
	{0x338c , 0x2417 },  
	{0x3390 , 0x0073 },  
	{0x338c , 0xa40d },  
	{0x3390 , 0x0002 },  
	{0x338c , 0xa410 },  
	{0x3390 , 0x0001 },  
	
	{0xffff,0xffff},
};       
#endif

